package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("f_order")
public class Forder {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("f_user")
    private Integer fuser;
    private Integer parcelid;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String time;
    private double price;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String date;
    @TableField("f_site")
    private Integer fsite;
    private Integer state;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String datetime;
    @TableField("out_trade_no")
    private String outtradeno;
    @TableField(exist = false)
    private List<Fsite> fsites;
}
